package com.sky.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "图书信息返回的数据格式")
public class BookVO implements Serializable {
    @ApiModelProperty("主键值")
    private String id;
    @ApiModelProperty("一级分类主键值")
    @JsonProperty("fId")
    private Integer fId;
    @ApiModelProperty("一级分类")
    private String fCategory;
    @ApiModelProperty("二级分类主键值")
    @JsonProperty("sId")
    private Integer sId;
    @ApiModelProperty("二级分类")
    private String sCategory;
    @ApiModelProperty("三级分类主键值")
    @JsonProperty("tId")
    private Integer tId;
    @ApiModelProperty("三级分类")
    private String tCategory;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("作者")
    private String author;
    @ApiModelProperty("封面")
    private String cover;
    @ApiModelProperty("阅读量")
    private Integer readCount;
    @ApiModelProperty("关联笔记数量")
    private Integer noteCount;// 关联笔记数量
    @ApiModelProperty("关联书评数量")
    private Integer reviewCount; // 关联书评数量
    @ApiModelProperty("关联收藏数量")
    private Integer collectCount; // 关联书评数量
}
